package Array;

public class Demo10ArrayMax {
    public static void main(String[] args) {
        int[] arr = {5, 6, 78, 25, 35};
        int max = arr[0];
        for (int i = 0; i < arr.length; i++) {
            if (arr[i] > max) {
                max = arr[i];
            }
        }
        System.out.println("最大值是：" + max);
    }
}
